FROM golang:latest

MAINTAINER zhaocy "admin@zhaocy.cn"

WORKDIR $GOPATH/src/GZ_Go_Admin

#准好的github.com包
ADD github.com $GOPATH/src/github.com

ADD gzadmin $GOPATH/src/GZ_Go_Admin

#RUN go get github.com/astaxie/beego && go get github.com/go-sql-driver/mysql

RUN go build ./main.go

EXPOSE 9090